package com.tanhua.dubbo.server.api;


import com.tanhua.dubbo.server.enums.LogType;
import com.tanhua.dubbo.server.pojo.Managelogs;

import com.tanhua.dubbo.server.vo.PageInfo;


public interface ManageLogsApi {

    /**
     * 添加日志信息
     *
     * @param userId
     * @param place
     * @param equipment
     * @param currentTimeMillis
     * @return
     */
    Boolean saveLogin(Long userId, String place, String equipment, Long currentTimeMillis);


    /**
     * 查询日志信息
     *
     * @param page
     * @param pagesize
     * @param sortProp
     * @param sortOrder
     * @param uid
     * @param login
     * @return
     */
    PageInfo<Managelogs> queryLoginLogList(Integer page, Integer pagesize, String sortProp, String sortOrder, Long uid, LogType login);
}
